<template>
  <div>
    <h1>验证输入框输入数字的功能</h1>
    <verify-wrapper
      class="digit-input-container"
      maxlength="10"
      placeholder="请输入数字"
      :value="amount"
      @input="handleInput"
    ></verify-wrapper>
  </div>
</template>

<script>
import VerifyWrapper from '@/components/VerifyWrapper.vue'

export default {
  name: 'Transmit',
  data () {
    return {
      amount: 2
    }
  },
  components: {
    VerifyWrapper
  },
  methods: {
    handleInput (value) {
      this.amount = value
    }
  }
}
</script>
